import cv2 as cv
import numpy as np
from matplotlib import pyplot as plt

img = cv.imread('../data/girl.png')
# 中值滤波
median = cv.medianBlur(img,5)

res = np.hstack((img,median))
cv.imshow('res',res)
cv.waitKey(0)
cv.destroyAllWindows()